/* static/css/department-view.css */
.department-view-container {
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.back-container {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.module-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.module-title {
    font-size: 1.5rem;
    color: #333;
}

.department-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 2rem;
}

.info-section {
    margin-bottom: 2rem;
}

.section-title {
    font-size: 1.2rem;
    color: #4a6cf7;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #eee;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.info-item {
    display: flex;
    flex-direction: column;
}

.info-label {
    font-weight: 600;
    color: #666;
    margin-bottom: 0.3rem;
    font-size: 0.9rem;
}

.info-value {
    color: #333;
    padding: 0.5rem;
    background: #f8f9fa;
    border-radius: 4px;
}

/* 状态标签 */
.status-active {
    display: inline-block;
    padding: 0.3rem 0.6rem;
    background-color: #28a745;
    color: white;
    border-radius: 4px;
    font-size: 0.85rem;
}

.status-inactive {
    display: inline-block;
    padding: 0.3rem 0.6rem;
    background-color: #dc3545;
    color: white;
    border-radius: 4px;
    font-size: 0.85rem;
}

/* 子部门列表样式 */
.sub-department-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
}

.sub-department-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background-color: #f8f9fa;
    border-radius: 4px;
    border-left: 3px solid #4a6cf7;
}

.sub-department-link {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.sub-department-link:hover {
    color: #4a6cf7;
}

.sub-department-status {
    font-size: 0.8rem;
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
}

/* 部门介绍样式 */
.introduction-content {
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 4px;
    line-height: 1.6;
    white-space: pre-line;
}

/* 链接样式 */
.link {
    color: #4a6cf7;
    text-decoration: none;
}

.link:hover {
    text-decoration: underline;
}

/* 按钮样式 */
.btn {
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    border: none;
    font-size: 0.9rem;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-back {
    background-color: #6c757d;
    color: white;
}

.btn-back:hover {
    background-color: #5a6268;
}

.btn-primary {
    background-color: #4a6cf7;
    color: white;
}

.btn-primary:hover {
    background-color: #3a5bd9;
}

/* 响应式调整 */
@media (max-width: 992px) {
    .info-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .info-grid {
        grid-template-columns: 1fr;
    }

    .module-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}